rm -rf output
mkdir output

for dirs in `ls -d */`
do
    if [ -f $dirs"Makefile" ]; then
        make -C $dirs
    fi
#    echo $dirs"Makefile"
done